﻿using SqlSugar;

namespace ManageSystem.Model
{
    [SugarTable("income_stream")]
    public partial class IncomeStream
    {
        //通过特性设置主键和自增列 
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int streamID { get; set; }
        public string projectGuid { get; set; }
        public string isBorrowed { get; set; }
        public string isOffset { get; set; }
        public string payUnit { get; set; }

        // 委托方、落地机构和合作方
        // todo client
        public string clients { get; set; }
        public string landingAgencies { get; set; }
        public string partners { get; set; }

        // 入账日期
        public string createdDate { get; set; }
        public decimal incomeAmount { get; set; }
        public string invoice { get; set; }
        public string incomeValidCode { get; set; }

        public string invoiceIssueDate { get; set; }
        public double invoiceAmount { get; set; }
        public double invoiceCount { get; set; }
        public string invoiceCode { get; set; }
        // 分账日期
        public string splitAmountDate { get; set; }

        public decimal schoolManageAmount { get; set; }
        public decimal welfareAmount { get; set; }
        public decimal devFundingAmount { get; set; }
        public decimal classPayAmount { get; set; }

        // pay
        public decimal payG { get; set; }

        public decimal payH { get; set; }
        public decimal payI { get; set; }
        public decimal payJ { get; set; }
        public decimal payK { get; set; }
        public decimal payL { get; set; }
        public decimal payM { get; set; }
        public decimal payN { get; set; }
        public decimal payO { get; set; }
        public decimal payP { get; set; }
        public decimal payQ { get; set; }
        public decimal payR { get; set; }
        public decimal payS { get; set; }
        public decimal payT { get; set; }

        // 备注
        public string remarks { get; set; }

        // 这一列不插入数据库，只用来记录流水更新之前的入账金额以便当流水变化时
        [SugarColumn(IsIgnore = true)]
        public decimal oldIncomeAmount { get; set; }
    }
}
